﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PublishAdControl.ascx.cs" Inherits="Buy2Site.UserControls.PublishAdControl" %>
<table dir="ltr">
    <tr>
        <td>
            <asp:Label ID="lblSuccess" runat="server" Text="Label"></asp:Label>
            <br />
            <asp:HyperLink ID="linkToMain" runat="server"></asp:HyperLink>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server" Text="Item Details"></asp:Label> 
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label2" runat="server" Text="Title"></asp:Label>
            <br />
            <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                runat="server" 
                ControlToValidate="txtTitle" ErrorMessage="*" 
                ForeColor="Red" >
            </asp:RequiredFieldValidator>
        </td>
        <td>
            <asp:Label ID="Label3" runat="server" Text="Image 1 (Main)"></asp:Label>
            
            <%--<asp:FileUpload ID="btnLoadImage1" runat="server" Text="Load Image" ></asp:FileUpload>--%>
        </td>
        <td>
            <asp:FileUpload ID="FileUploadImage1" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server" Text="Short Description"></asp:Label>
            <br />
            <asp:TextBox ID="txtShortDescription" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" 
                runat="server" ControlToValidate="txtShortDescription"
                ForeColor="Red"
                ErrorMessage="*">
            </asp:RequiredFieldValidator>
        </td>
        <td>
            <asp:Label ID="Label5" runat="server" Text="Image 2"></asp:Label>
            
            <%--<asp:Button ID="btnLoadImage2" runat="server" Text="Load Image" />--%>
        </td>
        <td>
            <asp:FileUpload ID="FileUploadImage2" runat="server" />
        </td>
    </tr>
    <tr>
       <td>
       </td>
       <td></td>
        <td>
            <asp:Label ID="Label7" runat="server" Text="Image 3"></asp:Label>
        
            <%--<asp:Button ID="btnLoadImage3" runat="server" Text="Load Image" />--%>
        </td>
        <td>
            <asp:FileUpload ID="FileUploadImage3" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label6" runat="server" Text="Long Description"></asp:Label>
            <br />
            <asp:TextBox ID="txtLongDescription" runat="server" Height="100" TextMode="MultiLine"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" 
                runat="server" ControlToValidate="txtLongDescription"
                ForeColor="Red"
                ErrorMessage="*">
            </asp:RequiredFieldValidator>
        </td>
        
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label8" runat="server" Text="Price ($)"></asp:Label>
            <br />
            <asp:TextBox ID="txtPrice" runat="server" ></asp:TextBox>
        </td>
        <td>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                runat="server" ControlToValidate="txtPrice"
                ValidationExpression="^\d+$"
                ErrorMessage="Only numbers are allowed"
                ForeColor="Red">
            </asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                runat="server" ControlToValidate="txtPrice"
                ForeColor="Red"
                ErrorMessage="*">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnPublishAd" runat="server" Text="Publish Ad" OnClick="PublishAd_click" />
        </td>
    </tr>
</table>